package com.jinxin.platform.cdsideparkmgr.utils;

import org.springframework.util.StringUtils;

import java.util.UUID;

/**
 * All rights Reserved, Designed By www.beonelot.com
 *
 * @version: V1.0
 * @Copyright: www.beonelot.com Inc. All rights reserved.
 * @Description：
 * @Date: 2021-02-24
 * @Author: Lingnan
 **/
public class StringUtil {
    public static String getUuid() {
        UUID uuid = UUID.randomUUID();
        return uuid.toString().replace("-", "");
    }

    public static boolean isEmpty(String str){
        if(StringUtils.isEmpty(str)){return true;}
        String s = str.trim();
        return s.length() == 0;
    }
}
